<?php

AgaviConfig::set('core.app_dir', dirname(__FILE__));
if(($configDir = getenv('WELCOMESCREEN_CONFIG_DIR')) !== false) {
	AgaviConfig::set('org.welcomescreen.system.config_dir', $configDir);
} else {
	AgaviConfig::set('org.welcomescreen.system.config_dir', AgaviConfig::get('core.app_dir') . '/config/data');
}

AgaviConfig::set('core.project_dir', realpath(AgaviConfig::get('core.app_dir') . '/..'));
AgaviConfig::set('core.public_dir', AgaviConfig::get('core.project_dir') . '/pub');

// +---------------------------------------------------------------------------+
// | An absolute filesystem path to the directory where cache files will be    |
// | stored.                                                                   |
// |                                                                           |
// | NOTE: If you're going to use a public temp directory, make sure this is a |
// |       sub-directory of the temp directory. The cache system will attempt  |
// |       to clean up *ALL* data in this directory.                           |
// |                                                                           |
// | This constant will be auto-set by Agavi if you do not supply it.          |
// | The default value is: "<core.app_dir>/cache"                              |
// +---------------------------------------------------------------------------+
// AgaviConfig::set('core.cache_dir', AgaviConfig::get('core.app_dir') . '/cache');

// +---------------------------------------------------------------------------+
// | You may also modify the following other directives in this file:          |
// |  - core.config_dir   (defaults to "<core.app_dir>/config")                |
// |  - core.lib_dir      (defaults to "<core.app_dir>/lib")                   |
// |  - core.model_dir    (defaults to "<core.app_dir>/models")                |
// |  - core.module_dir   (defaults to "<core.app_dir>/modules")               |
// |  - core.template_dir (defaults to "<core.app_dir>/templates")             |
// +---------------------------------------------------------------------------+



?>